package com.geek.gkfood.facade.meal.bean;

import com.geek.gkdoc.facade.DocField;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <h1>抢单的明细信息对象。</h1><br/>
 *
 * <h1><br/><a href="https://u.geekbang.org/subject/arch3/100614201">Java 业务架构实战营：https://u.geekbang.org/subject/arch3/100614201</a></h1><br/><h1><a href="https://gitee.com/ylimhhmily/BizArchPracticeCamp">Java 业务架构实战营代码地址：https://gitee.com/ylimhhmily/BizArchPracticeCamp</a></h1><br/><h1><a href="https://u.geekbang.org/subject/java4th/1001148?source=app_share">高级 Java 工程体系课 2023 版：https://u.geekbang.org/subject/java4th/1001148?source=app_share</a></h1><br/><h1><a href="https://time.geekbang.org/column/intro/100312101?tab=catalog">Dubbo 源码剖析与实战：https://time.geekbang.org/column/intro/100312101?tab=catalog</a></h1>
 *
 * @author hmilyylimh
 * ^_^
 * @version 0.0.1
 * ^_^
 * @date 2023/9/29 08:20
 */
@Setter
@Getter
@ToString(callSuper = true)
public class SnatchOrderItem implements Serializable {

    private static final long serialVersionUID = 6421756056045664290L;

    @DocField(desc = "订单ID", required = true, sampleVal = "", version = "20230915")
    private String orderId;

    @DocField(desc = "当前登录用户的ID", extra = "各业务接口根据实际情况酌情选取，不过绝大多数业务接口还是需要该字段的", required = false, sampleVal = "1000000001", version = "20230901")
    private String userId;
    @DocField(desc = "当前登录用户的姓名", extra = "各业务接口根据实际情况酌情选取，不过绝大多数业务接口还是需要该字段的", required = false, sampleVal = "张三", version = "20230901")
    private String userName;

    @DocField(desc = "商铺ID", required = true, sampleVal = "SP00000000001", version = "20230915")
    private String shopId;
    @DocField(desc = "商铺名称", required = true, sampleVal = "费大厨.XX万象汇店", version = "20230915")
    private String shopName;

    @DocField(desc = "已选菜品列表", required = true, sampleVal = "", version = "20230915")
    private List<DishesDetailItem> selectedDishesList;

    @DocField(desc = "联系人电话", extra = "敏感字段，需要进行解密", required = false, sampleVal = "13838381438的秘文", version = "20230915")
    private String contactPhone;
    @DocField(desc = "联系人名称", extra = "用户对外暴露的别名，可以是真名，也可以是网名", required = false, sampleVal = "张三三", version = "20230915")
    private String contactName;

    @DocField(desc = "总金额", required = true, sampleVal = "", version = "20230915")
    private BigDecimal totalAmt;
    @DocField(desc = "支付金额", required = true, sampleVal = "", version = "20230915")
    private BigDecimal payAmt;
    @DocField(desc = "优惠折扣明细列表", required = false, sampleVal = "", version = "20230915")
    private List<DiscountItem> discountDetailList;

    @DocField(desc = "预定时间", extra = "精确到毫秒", required = false, sampleVal = "", version = "20230915")
    private Date bookTime;
}